package com.sky.controller;

import com.sky.service.OmsOrderService;
import com.sky.to.order.OmsOrderTo;
import com.sky.utils.R;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OmsOrderController {

    @Resource
    private OmsOrderService orderService;

    @RequestMapping("/getInfoByOrderSn")
    public R<OmsOrderTo> getInfoByOrderSn(@RequestParam("orderSn") String orderSn) {
        return R.ok(orderService.getInfoByOrderSn(orderSn));
    }
}
